﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class FloorBrandInfoConfig : EntityTypeConfiguration<FloorBrandInfo>
    {
        public FloorBrandInfoConfig()
        {
            ToTable("Himall_FloorBrands");         
            HasRequired(x => x.BrandInfo).WithMany(x => x.FloorBrandInfo).HasForeignKey(x => x.BrandId);
            HasRequired(x => x.HomeFloorInfo).WithMany(x => x.FloorBrandInfo).HasForeignKey(x => x.FloorId);
        }
    }
}
